﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="InfomationContentCateList.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.Infomation.InfomationContentCateList" %>
<asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" Width="100%">
    <ItemTemplate>
        <table width="100%">
            <tr>
                <td colspan="2" width="100px">
                    <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl='<%# "~/infodetail.aspx?id="+Eval("Id") + "&infoid="+Eval("InfoId") %>'
                        Text='<%# Eval("TieuDe") %>'></asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td width="100px">
                    <asp:ImageButton ID="ImageButton1" runat="server" Height="100px" ImageUrl='<%# "~/Images/HinhAnh/"+Eval("HinhAnh") %>'
                        PostBackUrl='<%# "~/infodetail.aspx?id="+Eval("Id") + "&infoid="+Eval("InfoId") %>'
                        Width="100px" />
                </td>
                <td valign="top">
                    <div>
                        <div>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("GhiChu") %>'></asp:Label>
                        </div>
                        <div style="text-align: right">
                            <asp:LinkButton ID="LinkButton2" runat="server" PostBackUrl='<%# "~/infodetail.aspx?id="+Eval("Id") + "&infoid="+Eval("InfoId") %>'>Read more</asp:LinkButton>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
        <br />
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetByLoai"
    TypeName="IOBusiness.clsBSInfomationContent">
    <SelectParameters>
        <asp:QueryStringParameter Name="loaiid" QueryStringField="id" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
